//
//  PositionModel.m
//  一点互助
//
//  Created by rimi on 16/8/31.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "PositionModel.h"

@implementation PositionModel
+(NSArray *)modelWithDic:(NSDictionary *)dic{
    NSArray *arr = dic.allKeys;
//    NSMutableArray *arr = [NSMutableArray array];
    for (int i = 65; i < 91; i++) {
        NSString *str = [NSString stringWithFormat:@"%c",i];
        NSArray *cityArr = dic[str];
        if ([cityArr isKindOfClass:[NSArray class]]) {
            for (int i = 0; i < cityArr.count; i++) {
                PositionModel *model = [[PositionModel alloc]init];
                model.cityName = cityArr[i][@"city_name"];
                model.cityId = [cityArr[i][@"city_id"]integerValue];
                model.code = str;
//                [arr addObject:model];
            }

        }
    }
    return arr;
}
@end
